package com.frontop.system.modules.sale.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.frontop.system.modules.sale.model.SaleQrStatis;
import com.frontop.system.modules.sale.mapper.SaleQrStatisMapper;
import com.frontop.system.modules.sale.service.SaleQrStatisService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.frontop.system.modules.sale.vo.SaleQrStatisVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 二维码扫码统计 服务实现类
 * </p>
 *
 * @author YangJia
 * @since 2022-04-24
 */
@Service
public class SaleQrStatisServiceImpl extends ServiceImpl<SaleQrStatisMapper, SaleQrStatis> implements SaleQrStatisService {
    @Autowired
    private SaleQrStatisMapper saleQrStatisMapper;

    @Override
    public Map<String, Object> getTotalStatics(Map<String, Object> map) {
        return saleQrStatisMapper.getTotalStatics(map);
    }

    @Override
    public List<Map<String,Object>> getQr30near(Map<String, Object> map) {
        return saleQrStatisMapper.getQr30near(map);
    }

    @Override
    public List<Map<String, Object>> getSort(Map<String, Object> map) {
        return saleQrStatisMapper.getSort(map);
    }

    @Override
    public List<Map<String, Object>> getMpsStatis(Map<String, Object> map) {
        return saleQrStatisMapper.getMpsStatis(map);
    }

    @Override
    public Page<SaleQrStatis> qrStatisticsPage(Page<SaleQrStatis> page, SaleQrStatisVO vo) {
        return saleQrStatisMapper.qrStatisticsPage(page,vo);
    }
}
